package com.community.common.pojo.response;

/**
 * @author Administrator
 */
public enum CodeEnum {
    //接口调用成功
    SUCCESS(200, "请求成功"),
    //接口处理失败
    PROCESSING_FAIL(202, "处理失败"),
    //服务异常
    SERVICE_EXCEPTION(500, "服务异常"),
    //参数异常
    PARAMETER_EXCEPTION(400, "参数值异常"),

    SYSTEM_NO_LOGIN(8888, "权限校验不通过"),

    /*--------------------------用户错误-----------------------------------------*/

    ABNORMAL_BELONGING(10001, "数据归属异常"),

    ACTIVE_CODE_NOT_FOUND(10002, "激活码不存在"),

    ACTIVE_CODE_USED(10003, "当前激活码状态已经被使用"),

    ACTIVE_CODE_EXCEPTION(10004, "当前激活码状态异常，请联系小区管理员！"),

    NOT_FOUND(11005, "未查询到信息");

    private CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;

    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
